home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Online / opennap / sample.config < prev    next >
Text File  |  2001-06-08  |  6KB  |  163 lines

  1. ### $Id: sample.config,v 1.3 2001/03/03 01:00:06 drscholl Exp $
  2. ###
  3. ### Sample configuration file for opennap
  4. ###
  5. ### This file is typically renamed to /usr/local/share/opennap/config, or
  6. ### for Win32 platforms it is C:\opennap\config
  7. ###
  8.  
  9. # this file should be read-only by the process running the daemon.  if the
  10. # user/pass combo are leaked then anyone can alter the table used for storing
  11. # the information
  12.  
  13. # the official name for this server (defaults to the value of gethostname(3))
  14. #server_name localhost
  15.  
  16. # the name to use to refer to this server.  causes the `server_name' to be
  17. # hidden.
  18. #server_alias opennap
  19.  
  20. # port(s) to listen on for client connections (defaults to 8888)
  21. #server_ports 4444 7777 8888
  22.  
  23. # maximum number of channels a user is allowed to join (default: 5)
  24. #max_user_channels 5
  25.  
  26. # maximum number of chars in a nickname
  27. #max_nick_length 32
  28.  
  29. # maximum length of server->server queue (default: 1MB)
  30. #server_queue_length 1000000
  31.  
  32. # maximum length of server->client queue (default: 100KB)
  33. #client_queue_length 10000
  34.  
  35. # maxiumum number of files returned by a browse command (default: 500)
  36. #max_browse_result 5000
  37.  
  38. # maximum number of results returned for a search (default: 100)
  39. #max_results 500
  40.  
  41. # maximum number of files a user is allowed to share (default: 5000)
  42. #max_shared 1000
  43.  
  44. # how often to send server stats to clients (default: 60 seconds)
  45. #stat_click 15
  46.  
  47. # maximum number of local connections (default: 1000)
  48. #max_connections 100
  49.  
  50. # ip address to listen on (default: ANY)
  51. #listen_addr 127.0.0.1
  52.  
  53. # directory to read opennap config files (default: /usr/local/share/opennap)
  54. # config_dir .
  55.  
  56. # max amount of idle time allowed before closing connection when logging in
  57. #login_timeout 60
  58.  
  59. # max length of a client command (default: 2kbytes)
  60. #max_command_length 2048
  61.  
  62. # automatically register all user accounts the first time they log in
  63. # (default: off)
  64. # auto_register 0
  65.  
  66. # require all accounts to be registered (default: off)
  67. # registered_only 0
  68.  
  69. # maximum number of entries allowed for a hotlist (default: 32)
  70. # max_hotlist 100
  71.  
  72. # maximum number of entries allowed on an ignore list (default: 32)
  73. # max_ignore 100
  74.  
  75. # maximum length of a channel topic (default: 64)
  76. # max_topic 100
  77.  
  78. # maximum length of the client version string (default: 32)
  79. # max_client_string 100
  80.  
  81. # maximum length of the reason string in the kick/kill/muzzle commands
  82. # (default: 64)
  83. # max_reason 100
  84.  
  85. # compression level (0 = none, 1 = least effort (default), 9 = best effort)
  86. #compression_level 6
  87.  
  88. # maximum number of connnections from a single ip (default: 0 [unlimited])
  89. #max_clones 3
  90.  
  91. # port to listen on for stats reporting (useful to napigator)
  92. #stats_port 8889
  93.  
  94. # when max_connections has been reach, opennap will kick users who aren't
  95. # sharing files in order to make room for other clients if `eject_when_full'
  96. # is set to 1 (default: 0)
  97. #eject_when_full 1
  98.  
  99. # number of commands that can be issued in `flood_time' seconds
  100. # (default: 0 [no flood control])
  101. #flood_commands 5
  102.  
  103. # number of seconds in which `flood_commands' number of commands can be
  104. # issued by a client (default: 0)
  105. # NOTE: NEVER EVER SET THIS TO 0!!!  Doing so will cause 100% cpu usage
  106. # NOTE: this should be an integral multiple of `flood_commands' for it to
  107. # work correctly.
  108. #flood_time 10
  109.  
  110. # set the threshold after which opennap will warn if the number of files
  111. # matching a particular search term exceeds this value.  (default: 5000)
  112. #file_count_threshold 1000
  113.  
  114. # set the time after which unused nicknames are expired.  if a user hasn't
  115. # logged in for this number of seconds, the nick is considered expired.
  116. # mod+ accounts are exempt, and never expire (for security reasons)
  117. # default: 31 days
  118. # note: the value should be in seconds
  119. #nick_expire 2678400
  120.  
  121. # Napigator support - you should only need to set stat_server_user and
  122. #   stat_server_pass at the minimum.  If you have used your correct DNS
  123. #   name for server_name above, then you don't need to use any of the
  124. #   report_* variables.  If opennap has trouble detecting the proper values
  125. #   to send to napigator, then you should set the report_* variables
  126. #   appropriately.
  127. #stat_server_user myuser
  128. #stat_server_pass mypass
  129. #stat_server_host stat.napigator.com
  130. #stat_server_port 8890
  131. # my server name on www.napigator.com
  132. #report_name my.server.name
  133. # this is the ip address that is externally visable
  134. #report_ip 1.2.3.4
  135. # this is the TCP port where clients can connect
  136. #report_port 8888
  137.  
  138. # END of Win32 configuration.  What follows is only for the Unix versions
  139.  
  140. # if your operating system has a small limit for the maxium amount of data
  141. # a single process is allowed to allocate, adjust this value to the maximum
  142. # you wish to use.  on many systems this does not even require root access
  143. # to change to a higher value (default: -1, use system default)
  144. #max_data_size 64000000
  145.  
  146. # this value adjusts how much real memory each process is allowed to consume
  147. # before parts of the allocated memory get swapped out (default: -1, use
  148. # system default)
  149. #max_rss_size 64000000
  150.  
  151. # set this to the highest value that max_connections will ever be during the
  152. # process lifetime.  this can't be changed while opennap is running because
  153. # on many systems it requires root privilege, and we drop those before
  154. # handling user input as a security measure.  (default: 1024)
  155. #connection_hard_limit 4096
  156.  
  157. # prevent opennap from being swapped to disk.  WARNING!  this should only
  158. # be used in conjunction with the max_data_size otherwise opennap could
  159. # consume all of your system memory (default: off)
  160. #lock_memory 0
  161.  
  162. # EOF
  163.